package com.hsh.member.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author
 * @date2022/12/1 14:19
 */
@EnableTransactionManagement //开启事务管理
@MapperScan("com.hsh.member.mapper") //扫描mapper接口
@Configuration
public class MybatisPlusConfig {

  /*
  *   分页插件
  *
  * */
  @Bean
  public PaginationInterceptor paginationInterceptor (){
    PaginationInterceptor paginationInterceptor= new PaginationInterceptor();
    return paginationInterceptor;
  }



}
